//! \file CoreError.h
//! \brief TODO: Document
// -----------------------------------------------------------------------------
//! This program is free software; you can redistribute it and/or
//! modify it under the terms of the GNU General Public License
//! as published by the Free Software Foundation; either version 2
//! of the License, or (at your option) any later version.
//!
//! This program is distributed in the hope that it will be useful,
//! but WITHOUT ANY WARRANTY; without even the implied warranty of
//! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//! GNU General Public License for more details.
//!
//! You should have received a copy of the GNU General Public License
//! along with this program; if not, write to the Free Software Foundation,
//! Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// -----------------------------------------------------------------------------
#ifndef dCORE_ERROR_H_
#define dCORE_ERROR_H_

#include "DataTypes.h"

//#ifdef __cplusplus
//extern "C"
//{
//#endif

namespace Core {

// =============================================================================
//! \typedef tERROR
//! \brief TODO: document
// -----------------------------------------------------------------------------
typedef std::tERROR tERROR;

// =====[ Errors Values ]=======================================================
static const tERROR ERR_NONE                                  = std::ERR_NONE;
static const tERROR ERR_INVALID_ARGUMENT                      = 101;
static const tERROR ERR_UNABLE_TO_CREATE_TASK                 = 102;


//  static const tERROR ERR_
//  static const tERROR ERR_
//  static const tERROR ERR_
//  static const tERROR ERR_

// TODO: remove
//  #define dERROR_INVALID_ARGUMENT                                 (tERROR)1
//  #define dERROR_CORE_BAD                                         (tERROR)50
//  #define dERROR_CORE_FAILED_MEMORY_ALLOCATION                    (tERROR)49
//  #define dERROR_CORE_UNABLE_TO_CREATE_THREAD                     (tERROR)51
//  #define dERROR_CORE_UNABLE_TO_JOIN_THREAD                       (tERROR)52

} // namespace Core

//#ifdef __cplusplus
//}
//#endif

#endif // dCORE_ERROR_H_
